#!/bin/sh

set -e

#md5_new_list=$(awk '{print $1}' ./md5)
ret=$(awk 'BEGIN {idx=0} {arr[idx]=$1; idx++} END {if (arr[0] == arr[1]) { print "OK" } else {print "FAILED"}}' ./md5)
if [ ${ret} = "OK" ]; then
    echo "md5 is the same"
else
    echo "md5 is not the same"
fi
